#include <iostream>
#include <unistd.h>
#include "ShareMemory.hpp"
#include "Fifo.hpp"

int main()
{
    shm.CreateShm();
    shm.AttachShm();

    shm.ShmMeta();

    // gpipe.OpenPipeForRead();

    // IPC
    struct data *image = (struct data *)shm.GetAddr();
    //printf("server 虚拟地址：%p\n", strinfo);

    // while(true)
    // {
    //     // gpipe.Wait();

    //     printf("status: %s\n", image->status);
    //     printf("lasttime: %s\n", image->lasttime);
    //     printf("status: %s\n", image->image);
    // }



    shm.DetachShm();
    shm.DeleteShm();

    return 0;
}